﻿@using Nop.Core.Domain.Media
@using Nop.Core.Infrastructure;
@using Telerik.Web.Mvc.UI;
@{
    var displayMiniProfiler = EngineContext.Current.Resolve<Nop.Core.Domain.StoreInformationSettings>().DisplayMiniProfilerInPublicStore;

    //resources

    Html.AppendCssFileParts("~/subsites/Commerce/Content/smoothness/jquery-ui-1.8.17.custom.css");

    Html.AppendCssFileParts("~/Content/css/SpotsHUB.commerce.min.css");
    Html.AppendCssFileParts("~/Content/css/SpotsHUB.common.min.css");
    Html.AppendCssFileParts("~/Content/css/bootstrap-ms-xl.min.css");
    // Old
    //Html.AppendCssFileParts("~/Content/css/commerce.css");
    //Html.AppendCssFileParts("~/Content/css/spotshub.css");
    //if (Html.IsBetaEnabled())
    //{
    //    Html.AppendCssFileParts("~/Content/css/betaLegacy.css");
    //}
    //else
    //{
    //    Html.AppendCssFileParts("~/Content/css/noBetaLegacy.css");
    //}
    Html.AppendScriptParts("~/Scripts/SpotsHUB.commerce.js");
    Html.AppendScriptParts("~/Scripts/SpotsHUB.common.js");
    Html.AppendScriptParts("~/Scripts/modernizr.js");
    Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
    Html.AppendScriptParts("~/Scripts/jquery.easing.1.3.js");
}
<!DOCTYPE html>
<html @Html.Partial("LanguageAttributes")>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@Html.NopTitle(true)</title>
    <meta name="description" content="@(Html.NopMetaDescription())" />
    <meta name="keywords" content="@(Html.NopMetaKeywords())" />
    <meta name="p:domain_verify" content="64d22bd769e42a26d22912df4b5cd43f" />

    <link rel="apple-touch-icon" sizes="57x57" href="/content/images/favicon/apple-touch-icon-57x57.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="60x60" href="/content/images/favicon/apple-touch-icon-60x60.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="72x72" href="/content/images/favicon/apple-touch-icon-72x72.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="76x76" href="/content/images/favicon/apple-touch-icon-76x76.png?v=LbbWkEmr9b">
    <link rel="icon" type="image/png" href="/content/images/favicon/favicon-32x32.png?v=LbbWkEmr9b" sizes="32x32">
    <link rel="icon" type="image/png" href="/content/images/favicon/favicon-16x16.png?v=LbbWkEmr9b" sizes="16x16">
    <link rel="manifest" href="/content/images/favicon/manifest.json?v=LbbWkEmr9b">
    <link rel="shortcut icon" href="/favicon.ico?v=LbbWkEmr9b">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">

    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
    <script>window.jQuery || document.write('<script src="/Scripts/jquery-1.11.2.min.js"><\/script>')</script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
    <script>window.jQuery.ui || document.write('<script src="/Scripts/jquery-ui.min.js"><\/script>')</script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script>if (typeof ($.fn.modal) === 'undefined') { document.write('<script src="/Scripts/bootstrap.min.js"><\/script>') }</script>
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.5.7/slick.min.js"></script>
    <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.5.7/slick.css" />
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href='//fonts.googleapis.com/css?family=Roboto:400,400italic,300,700' rel='stylesheet' type='text/css'>
    @*This is used so that themes can inject content into the header*@
    @Html.AddAzureInsightsScript()
    @Html.Widget("head_html_tag")
    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
    @Html.NopCanonicalUrls()
    @(Html.Telerik().StyleSheetRegistrar()
    .DefaultGroup(group => group

        .Add("telerik.common.min.css")
        .Add("telerik.spotshub.min.css")
    ))
    @(Html.Telerik().ScriptRegistrar()
        .jQuery(false)
        .jQueryValidation(false)
    )
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-42486105-1', 'auto');
        ga('send', 'pageview');
    </script>

    @if (IsSectionDefined("HeadMeta"))
    {
        @RenderSection("HeadMeta")
    }

</head>
<body id="spotshub-commerce" class="@if(ViewBag.Home as bool? == true){<text>home</text>}">
    <header id="header">
        <div class="container-fluid">
            <div class="row">
                <div class="col-xs-12 col-ms-6 col-sm-6 col-md-4">
                    <div class="header-logo">
                        <a href="@Url.RouteUrl("HomePage")" class="logo-image"><img class="img-responsive" src="/Content/images/spotshub-new-logo.png"></a>
                    </div>
                </div>
                <div class="col-xs-12 col-ms-6 col-sm-6 col-md-4 col-md-offset-4 header-links-wrapper">
                    <nav>
                        @Html.Action("HeaderLinks", "Common", new { isCheckout = ViewBag.IsCheckout })
                    </nav>
                </div>
                <div class="clear"></div>
                <div class="col-md-8 header-search-wrapper">
                    <div class="header-search">
                        @Html.Action("SearchBox", "Catalog", new { area = "Commerce", Cid = Request.QueryString["Cid"] })
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </header>
    
    <article id="main" @if (ViewBag.HomePage == true || ViewBag.IsCheckout == true) { <text> class="nopadding" </text>        }>
        <div id="message-box"></div>
        @Html.Action("JavaScriptDisabledWarning", "Common", new { area = "Commerce" })
        <div @if (ViewBag.HomePage != true && ViewBag.IsCheckout != true && ViewBag.IsCart != true && ViewBag.IsBlog != true && ViewBag.InfoPage != true) { <text> class="container-fluid" </text>        } else if (ViewBag.InfoPage == true || ViewBag.IsCart == true || ViewBag.IsBlog == true) { <text> class="container" </text>        }>
            @if (IsSectionDefined("left") || IsSectionDefined("right"))
            {
                <div class="row">
                    @if (IsSectionDefined("left"))
                    {
                        <div class="col-sm-3">
                            @RenderSection("left")
                        </div>
                    }
                    <div class="col-sm-9">
                        @RenderBody()
                    </div>
                    @if (IsSectionDefined("right"))
                    {
                        <div class="col-sm-3">
                            @RenderSection("right")
                        </div>
                    }
                    <div class="clear"></div>
                </div>
            }
            else
            {
                        @RenderBody()
            }
        </div>
        @Html.Widget("content_after")
        @Html.Action("EuCookieLaw", "Common", new { area = "Commerce" })
    </article>


    @if (IsSectionDefined("FluidBottom"))
    {
        <div class="container-fluid">
            @RenderSection("FluidBottom");
        </div>
    }
    @if (IsSectionDefined("Bottom"))
    {
        @RenderSection("Bottom");
    }
    <footer id="footer">
        @Html.Action("FooterBadge", "Common", new { area = "Commerce" })
        @Html.Action("Footer", "Common", new { area = "Commerce" })
    </footer>
</body>

</html>